home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / GXErrors.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  27.9 KB  |  792 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXErrors.a
  3. ;
  4. ;    Contains:    QuickDraw GX error constants and debugging routines
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1994-1997 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__GXERRORS__') = 'UNDEFINED' THEN
  19. __GXERRORS__ SET 1
  20.  
  21.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  22.     include 'ConditionalMacros.a'
  23.     ENDIF
  24.     IF &TYPE('__MIXEDMODE__') = 'UNDEFINED' THEN
  25.     include 'MixedMode.a'
  26.     ENDIF
  27.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  28.     include 'GXTypes.a'
  29.     ENDIF
  30.  
  31.  
  32. gxFirstSystemError                EQU        -27999                ; 0xffff92a1 
  33. gxFirstFatalError                EQU        -27999
  34. gxLastFatalError                EQU        -27951
  35. gxFirstNonfatalError            EQU        -27950
  36. gxFirstFontScalerError            EQU        -27900
  37. gxLastFontScalerError            EQU        -27851
  38. gxFirstParameterError            EQU        -27850
  39. gxFirstImplementationLimitError    EQU        -27800
  40. gxFirstSystemDebuggingError        EQU        -27700
  41. gxLastSystemError                EQU        -27000                ; 0xffff9688 
  42. gxFirstLibraryError                EQU        1048576                ; 0x00100000 
  43. gxLastLibraryError                EQU        2097151                ; 0x001fffff 
  44. gxFirstAppError                    EQU        2097152                ; 0x00200000 
  45. gxLastAppError                    EQU        4194303                ; 0x003fffff 
  46. gxFirstSystemWarning            EQU        -26999                ; 0xffff9689 
  47. gxFirstResultOutOfRangeWarning    EQU        -26950
  48. gxFirstParameterOutOfRangeWarning EQU    -26900
  49. gxFirstFontScalerWarning        EQU        -26850
  50. gxFirstSystemDebuggingWarning    EQU        -26700
  51. gxLastSystemWarning                EQU        -26000                ; 0xffff9a70 
  52. gxFirstLibraryWarning            EQU        4194304                ; 0x00400000 
  53. gxLastLibraryWarning            EQU        5242879                ; 0x004fffff 
  54. gxFirstAppWarning                EQU        5242880                ; 0x00500000 
  55. gxLastAppWarning                EQU        7340031                ; 0x006fffff 
  56. gxFirstSystemNotice                EQU        -25999                ; 0xffff9a71 
  57. gxLastSystemNotice                EQU        -25500                ; 0xffff9c64 
  58. gxFirstLibraryNotice            EQU        7340032                ; 0x00700000 
  59. gxLastLibraryNotice                EQU        7602175                ; 0x0073ffff 
  60. gxFirstAppNotice                EQU        7602176                ; 0x00740000 
  61. gxLastAppNotice                    EQU        8388607                ; 0x007fffff 
  62.  
  63.                                                             ; truly fatal errors 
  64. out_of_memory                    EQU        -27999
  65. internal_fatal_error            EQU        -27998
  66. no_outline_font_found            EQU        -27997
  67. not_enough_memory_for_graphics_client_heap EQU -27996
  68. could_not_create_backing_store    EQU        -27995                ; internal errors 
  69. internal_error                    EQU        -27950
  70. internal_font_error                EQU        -27949
  71. internal_layout_error            EQU        -27948                ; recoverable errors 
  72. could_not_dispose_backing_store    EQU        -27946
  73. unflattening_interrupted_by_client EQU    -27945                ; font manager errors 
  74. font_cannot_be_changed            EQU        -27944
  75. illegal_font_parameter            EQU        -27943                ; gxFont scaler errors 
  76. null_font_scaler_context        EQU        -27900
  77. null_font_scaler_input            EQU        -27899
  78. invalid_font_scaler_context        EQU        -27898
  79. invalid_font_scaler_input        EQU        -27897
  80. invalid_font_scaler_font_data    EQU        -27896
  81. font_scaler_newblock_failed        EQU        -27895
  82. font_scaler_getfonttable_failed    EQU        -27894
  83. font_scaler_bitmap_allocation_failed EQU -27893
  84. font_scaler_outline_allocation_failed EQU -27892
  85. required_font_scaler_table_missing EQU    -27891
  86. unsupported_font_scaler_outline_format EQU -27890
  87. unsupported_font_scaler_stream_format EQU -27889
  88. unsupported_font_scaler_font_format EQU    -27888
  89. font_scaler_hinting_error        EQU        -27887
  90. font_scaler_rasterizer_error    EQU        -27886
  91. font_scaler_internal_error        EQU        -27885
  92. font_scaler_invalid_matrix        EQU        -27884
  93. font_scaler_fixed_overflow        EQU        -27883
  94. font_scaler_api_version_mismatch EQU    -27882
  95. font_scaler_streaming_aborted    EQU        -27881
  96. unknown_font_scaler_error        EQU        -27880                ; bad parameters 
  97. parameter_is_nil                EQU        -27850
  98. shape_is_nil                    EQU        -27849
  99. style_is_nil                    EQU        -27848
  100. transform_is_nil                EQU        -27847
  101. ink_is_nil                        EQU        -27846
  102. transferMode_is_nil                EQU        -27845
  103. color_is_nil                    EQU        -27844
  104. colorProfile_is_nil                EQU        -27843
  105. colorSet_is_nil                    EQU        -27842
  106. spoolProcedure_is_nil            EQU        -27841
  107. tag_is_nil                        EQU        -27840
  108. type_is_nil                        EQU        -27839
  109. mapping_is_nil                    EQU        -27838
  110. invalid_viewDevice_reference    EQU        -27837
  111. invalid_viewGroup_reference        EQU        -27836
  112. invalid_viewPort_reference        EQU        -27835                ; implementation limits, these should be right before the debugging errors 
  113. number_of_contours_exceeds_implementation_limit EQU -27800
  114. number_of_points_exceeds_implementation_limit EQU -27799
  115. size_of_polygon_exceeds_implementation_limit EQU -27798
  116. size_of_path_exceeds_implementation_limit EQU -27797
  117. size_of_text_exceeds_implementation_limit EQU -27796
  118. size_of_bitmap_exceeds_implementation_limit EQU -27795
  119. number_of_colors_exceeds_implementation_limit EQU -27794
  120. procedure_not_reentrant            EQU        -27793
  121.  
  122.  
  123.  
  124.                                                             ; internal debugging errors 
  125. functionality_unimplemented        EQU        -27700
  126. clip_to_frame_shape_unimplemented EQU    -27699                ; font parameter debugging errors 
  127. illegal_font_storage_type        EQU        -27698
  128. illegal_font_storage_reference    EQU        -27697
  129. illegal_font_attributes            EQU        -27696                ; parameter debugging errors 
  130. parameter_out_of_range            EQU        -27695
  131. inconsistent_parameters            EQU        -27694
  132. index_is_less_than_zero            EQU        -27693
  133. index_is_less_than_one            EQU        -27692
  134. count_is_less_than_zero            EQU        -27691
  135. count_is_less_than_one            EQU        -27690
  136. contour_is_less_than_zero        EQU        -27689
  137. length_is_less_than_zero        EQU        -27688
  138. invalid_client_reference        EQU        -27687
  139. invalid_graphics_heap_start_pointer EQU    -27686
  140. invalid_nongraphic_globals_pointer EQU    -27685
  141. colorSpace_out_of_range            EQU        -27684
  142. pattern_lattice_out_of_range    EQU        -27683
  143. frequency_parameter_out_of_range EQU    -27682
  144. tinting_parameter_out_of_range    EQU        -27681
  145. method_parameter_out_of_range    EQU        -27680
  146. space_may_not_be_indexed        EQU        -27679
  147. glyph_index_too_small            EQU        -27678
  148. no_glyphs_added_to_font            EQU        -27677
  149. glyph_not_added_to_font            EQU        -27676
  150. point_does_not_intersect_bitmap    EQU        -27675
  151. required_font_table_not_present    EQU        -27674
  152. unknown_font_table_format        EQU        -27673                ; the styles encoding is not present in the font 
  153. shapeFill_not_allowed            EQU        -27672
  154. inverseFill_face_must_set_clipLayer_flag EQU -27671
  155. invalid_transferMode_colorSpace    EQU        -27670
  156. colorProfile_must_be_nil        EQU        -27669
  157. bitmap_pixel_size_must_be_1        EQU        -27668
  158. empty_shape_not_allowed            EQU        -27667
  159. ignorePlatformShape_not_allowed    EQU        -27666
  160. nil_style_in_glyph_not_allowed    EQU        -27665
  161. complex_glyph_style_not_allowed    EQU        -27664
  162. invalid_mapping                    EQU        -27663
  163. cannot_set_item_shapes_to_nil    EQU        -27662
  164. cannot_use_original_item_shapes_when_growing_picture EQU -27661
  165. cannot_add_unspecified_new_glyphs EQU    -27660
  166. cannot_dispose_locked_tag        EQU        -27659
  167. cannot_dispose_locked_shape        EQU        -27658                ; restricted access 
  168. shape_access_not_allowed        EQU        -27657
  169. colorSet_access_restricted        EQU        -27656
  170. colorProfile_access_restricted    EQU        -27655
  171. tag_access_restricted            EQU        -27654
  172. viewDevice_access_restricted    EQU        -27653
  173. graphic_type_does_not_have_a_structure EQU -27652
  174. style_run_array_does_not_match_number_of_characters EQU -27651
  175. rectangles_cannot_be_inserted_into EQU    -27650
  176. unknown_graphics_heap            EQU        -27649
  177. graphics_routine_selector_is_obsolete EQU -27648
  178. cannot_set_graphics_client_memory_without_setting_size EQU -27647
  179. graphics_client_memory_too_small EQU    -27646
  180. graphics_client_memory_is_already_allocated EQU -27645
  181. viewPort_is_a_window            EQU        -27644                ; wrong type/bad reference 
  182. illegal_type_for_shape            EQU        -27643
  183. shape_does_not_contain_a_bitmap    EQU        -27642
  184. shape_does_not_contain_text        EQU        -27641
  185. picture_expected                EQU        -27640
  186. bitmap_is_not_resizable            EQU        -27639
  187. shape_may_not_be_a_bitmap        EQU        -27638
  188. shape_may_not_be_a_picture        EQU        -27637
  189. graphic_type_does_not_contain_points EQU -27636
  190. graphic_type_does_not_have_multiple_contours EQU -27635
  191. graphic_type_cannot_be_mapped    EQU        -27634
  192. graphic_type_cannot_be_moved    EQU        -27633
  193. graphic_type_cannot_be_scaled    EQU        -27632
  194. graphic_type_cannot_be_rotated    EQU        -27631
  195. graphic_type_cannot_be_skewed    EQU        -27630
  196. graphic_type_cannot_be_reset    EQU        -27629
  197. graphic_type_cannot_be_dashed    EQU        -27628
  198. graphic_type_cannot_be_reduced    EQU        -27627
  199. graphic_type_cannot_be_inset    EQU        -27626
  200. shape_cannot_be_inverted        EQU        -27625
  201. shape_does_not_have_area        EQU        -27624
  202. shape_does_not_have_length        EQU        -27623
  203. first_glyph_advance_must_be_absolute EQU -27622
  204. picture_cannot_contain_itself    EQU        -27621
  205. viewPort_cannot_contain_itself    EQU        -27620
  206. cannot_set_unique_items_attribute_when_picture_contains_items EQU -27619
  207. layer_style_cannot_contain_a_face EQU    -27618
  208. layer_glyph_shape_cannot_contain_nil_styles EQU -27617        ; validation errors 
  209. object_wrong_type                EQU        -27616
  210. shape_wrong_type                EQU        -27615
  211. style_wrong_type                EQU        -27614
  212. ink_wrong_type                    EQU        -27613
  213. transform_wrong_type            EQU        -27612
  214. device_wrong_type                EQU        -27611
  215. port_wrong_type                    EQU        -27610                ; validation cache errors 
  216. shape_cache_wrong_type            EQU        -27609
  217. style_cache_wrong_type            EQU        -27608
  218. ink_cache_wrong_type            EQU        -27607
  219. transform_cache_wrong_type        EQU        -27606
  220. port_cache_wrong_type            EQU        -27605
  221. shape_cache_parent_mismatch        EQU        -27604
  222. style_cache_parent_mismatch        EQU        -27603
  223. ink_cache_parent_mismatch        EQU        -27602
  224. transform_cache_parent_mismatch    EQU        -27601
  225. port_cache_parent_mismatch        EQU        -27600
  226. invalid_shape_cache_port        EQU        -27599
  227. invalid_shape_cache_device        EQU        -27598
  228. invalid_ink_cache_port            EQU        -27597
  229. invalid_ink_cache_device        EQU        -27596
  230. invalid_style_cache_port        EQU        -27595
  231. invalid_style_cache_device        EQU        -27594
  232. invalid_transform_cache_port    EQU        -27593
  233. invalid_transform_cache_device    EQU        -27592
  234. recursive_caches                EQU        -27591                ; validation shape cache errors 
  235. invalid_fillShape_ownerCount    EQU        -27590
  236. recursive_fillShapes            EQU        -27589                ; validation memory block errors 
  237. indirect_memory_block_too_small    EQU        -27588
  238. indirect_memory_block_too_large    EQU        -27587
  239. unexpected_nil_pointer            EQU        -27586
  240. bad_address                        EQU        -27585                ; validation object errors 
  241. no_owners                        EQU        -27584
  242. invalid_pointer                    EQU        -27583
  243. invalid_seed                    EQU        -27582
  244. invalid_frame_seed                EQU        -27581
  245. invalid_text_seed                EQU        -27580
  246. invalid_draw_seed                EQU        -27579
  247. bad_private_flags                EQU        -27578                ; validation path and polygon errors 
  248. invalid_vector_count            EQU        -27577
  249. invalid_contour_count            EQU        -27576                ; validation bitmap errors 
  250. bitmap_ptr_too_small            EQU        -27575
  251. bitmap_ptr_not_aligned            EQU        -27574
  252. bitmap_rowBytes_negative        EQU        -27573
  253. bitmap_width_negative            EQU        -27572
  254. bitmap_height_negative            EQU        -27571
  255. invalid_pixelSize                EQU        -27570
  256. bitmap_rowBytes_too_small        EQU        -27569
  257. bitmap_rowBytes_not_aligned        EQU        -27568
  258. bitmap_rowBytes_must_be_specified_for_user_image_buffer EQU -27567 ; validation bitmap image errors 
  259. invalid_bitImage_fileOffset        EQU        -27566
  260. invalid_bitImage_owners            EQU        -27565
  261. invalid_bitImage_rowBytes        EQU        -27564
  262. invalid_bitImage_internal_flag    EQU        -27563                ; validation text errors 
  263. text_bounds_cache_wrong_size    EQU        -27562
  264. text_metrics_cache_wrong_size    EQU        -27561
  265. text_index_cache_wrong_size        EQU        -27560                ; validation glyph errors 
  266. glyph_run_count_negative        EQU        -27559
  267. glyph_run_count_zero            EQU        -27558
  268. glyph_run_counts_do_not_sum_to_character_count EQU -27557
  269. glyph_first_advance_bit_set_not_allowed EQU -27556
  270. glyph_tangent_vectors_both_zero    EQU        -27555                ; validation layout errors 
  271. layout_run_length_negative        EQU        -27554
  272. layout_run_length_zero            EQU        -27553
  273. layout_run_level_negative        EQU        -27552
  274. layout_run_lengths_do_not_sum_to_text_length EQU -27551        ; validation picture errors 
  275. bad_shape_in_picture            EQU        -27550
  276. bad_style_in_picture            EQU        -27549
  277. bad_ink_in_picture                EQU        -27548
  278. bad_transform_in_picture        EQU        -27547
  279. bad_shape_cache_in_picture        EQU        -27546
  280. bad_seed_in_picture                EQU        -27545
  281. invalid_picture_count            EQU        -27544                ; validation text face errors 
  282. bad_textLayer_count                EQU        -27543
  283. bad_fillType_in_textFace        EQU        -27542
  284. bad_style_in_textFace            EQU        -27541
  285. bad_transform_in_textFace        EQU        -27540                ; validation transform errors 
  286. invalid_matrix_flag                EQU        -27539
  287. transform_clip_missing            EQU        -27538                ; validation font cache errors 
  288. metrics_wrong_type                EQU        -27537
  289. metrics_point_size_probably_bad    EQU        -27536
  290. scalar_block_wrong_type            EQU        -27535
  291. scalar_block_parent_mismatch    EQU        -27534
  292. scalar_block_too_small            EQU        -27533
  293. scalar_block_too_large            EQU        -27532
  294. invalid_metrics_range            EQU        -27531
  295. invalid_metrics_flags            EQU        -27530
  296. metrics_maxWidth_probably_bad    EQU        -27529
  297. font_wrong_type                    EQU        -27528
  298. font_wrong_size                    EQU        -27527
  299. invalid_font_platform            EQU        -27526
  300. invalid_lookup_range            EQU        -27525
  301. invalid_lookup_platform            EQU        -27524
  302. font_not_in_font_list            EQU        -27523
  303. metrics_not_in_metrics_list        EQU        -27522                ; validation view device errors 
  304. bad_device_private_flags        EQU        -27521
  305. bad_device_attributes            EQU        -27520
  306. invalid_device_number            EQU        -27519
  307. invalid_device_viewGroup        EQU        -27518
  308. invalid_device_bounds            EQU        -27517
  309. invalid_bitmap_in_device        EQU        -27516                ; validation color set errors 
  310. colorSet_wrong_type                EQU        -27515
  311. invalid_colorSet_viewDevice_owners EQU    -27514
  312. invalid_colorSet_colorSpace        EQU        -27513
  313. invalid_colorSet_count            EQU        -27512                ; validation color profile errors 
  314. colorProfile_wrong_type            EQU        -27511
  315. invalid_colorProfile_flags        EQU        -27510
  316. invalid_colorProfile_response_count EQU    -27509                ; validation internal backing store errors 
  317. backing_free_parent_mismatch    EQU        -27508
  318. backing_store_parent_mismatch    EQU        -27507
  319.  
  320.  
  321.                                                             ; warnings about warnings 
  322. warning_stack_underflow            EQU        -26999
  323. warning_stack_overflow            EQU        -26998
  324. notice_stack_underflow            EQU        -26997
  325. notice_stack_overflow            EQU        -26996
  326. about_to_grow_heap                EQU        -26995
  327. about_to_unload_objects            EQU        -26994                ; result went out of range 
  328. map_shape_out_of_range            EQU        -26950
  329. move_shape_out_of_range            EQU        -26949
  330. scale_shape_out_of_range        EQU        -26948
  331. rotate_shape_out_of_range        EQU        -26947
  332. skew_shape_out_of_range            EQU        -26946
  333. map_transform_out_of_range        EQU        -26945
  334. move_transform_out_of_range        EQU        -26944
  335. scale_transform_out_of_range    EQU        -26943
  336. rotate_transform_out_of_range    EQU        -26942
  337. skew_transform_out_of_range        EQU        -26941
  338. map_points_out_of_range            EQU        -26940                ; gave a parameter out of range 
  339. contour_out_of_range            EQU        -26900
  340. index_out_of_range_in_contour    EQU        -26899
  341. picture_index_out_of_range        EQU        -26898
  342. color_index_requested_not_found    EQU        -26897
  343. colorSet_index_out_of_range        EQU        -26896
  344. index_out_of_range                EQU        -26895
  345. count_out_of_range                EQU        -26894
  346. length_out_of_range                EQU        -26893
  347. font_table_index_out_of_range    EQU        -26892
  348. font_glyph_index_out_of_range    EQU        -26891
  349. point_out_of_range                EQU        -26890
  350. profile_response_out_of_range    EQU        -26889                ; gxFont scaler warnings 
  351. font_scaler_no_output            EQU        -26850
  352. font_scaler_fake_metrics        EQU        -26849
  353. font_scaler_fake_linespacing    EQU        -26848
  354. font_scaler_glyph_substitution    EQU        -26847
  355. font_scaler_no_kerning_applied    EQU        -26846                ; might not be what you expected 
  356. character_substitution_took_place EQU    -26845
  357. unable_to_get_bounds_on_multiple_devices EQU -26844
  358. font_language_not_found            EQU        -26843
  359. font_not_found_during_unflattening EQU    -26842                ;storage 
  360. unrecognized_stream_version        EQU        -26841
  361. bad_data_in_stream                EQU        -26840
  362.  
  363.  
  364.                                                             ; nonsense data 
  365. new_shape_contains_invalid_data    EQU        -26700
  366. new_tag_contains_invalid_data    EQU        -26699
  367. extra_data_passed_was_ignored    EQU        -26698
  368. font_table_not_found            EQU        -26697
  369. font_name_not_found                EQU        -26696                ; doesn't make sense to do 
  370. unable_to_traverse_open_contour_that_starts_or_ends_off_the_curve EQU -26695
  371. unable_to_draw_open_contour_that_starts_or_ends_off_the_curve EQU -26694
  372. cannot_dispose_default_shape    EQU        -26693
  373. cannot_dispose_default_style    EQU        -26692
  374. cannot_dispose_default_ink        EQU        -26691
  375. cannot_dispose_default_transform EQU    -26690
  376. cannot_dispose_default_colorProfile EQU    -26689
  377. cannot_dispose_default_colorSet    EQU        -26688
  378. shape_direct_attribute_not_set    EQU        -26687                ; couldn't find what you were looking for 
  379. point_does_not_intersect_port    EQU        -26686
  380. cannot_dispose_non_font            EQU        -26685
  381. face_override_style_font_must_match_style EQU -26684
  382. union_of_area_and_length_returns_area_only EQU -26683
  383. insufficient_coordinate_space_for_new_device EQU -26682        ; other 
  384. shape_passed_has_no_bounds        EQU        -26681
  385. tags_of_type_flst_removed        EQU        -26680
  386. translator_not_installed_on_this_grafport EQU -26679
  387.  
  388. parameters_have_no_effect        EQU        -25999
  389. attributes_already_set            EQU        -25998
  390. caps_already_set                EQU        -25997
  391. clip_already_set                EQU        -25996
  392. color_already_set                EQU        -25995
  393. curve_error_already_set            EQU        -25994
  394. dash_already_set                EQU        -25993
  395. default_colorProfile_already_set EQU    -25992
  396. default_ink_already_set            EQU        -25991
  397. default_transform_already_set    EQU        -25990
  398. default_shape_already_set        EQU        -25989
  399. default_style_already_set        EQU        -25988
  400. dither_already_set                EQU        -25987
  401. encoding_already_set            EQU        -25986
  402. face_already_set                EQU        -25985
  403. fill_already_set                EQU        -25984
  404. font_already_set                EQU        -25983
  405. font_variations_already_set        EQU        -25982
  406. glyph_positions_are_already_set    EQU        -25981
  407. glyph_tangents_are_already_set    EQU        -25980
  408. halftone_already_set            EQU        -25979
  409. hit_test_already_set            EQU        -25978
  410. ink_already_set                    EQU        -25977
  411. join_already_set                EQU        -25976
  412. justification_already_set        EQU        -25975
  413. mapping_already_set                EQU        -25974
  414. pattern_already_set                EQU        -25973
  415. pen_already_set                    EQU        -25972
  416. style_already_set                EQU        -25971
  417. tag_already_set                    EQU        -25970
  418. text_attributes_already_set        EQU        -25969
  419. text_size_already_set            EQU        -25968
  420. transfer_already_set            EQU        -25967
  421. translator_already_installed_on_this_grafport EQU -25966
  422. transform_already_set            EQU        -25965
  423. type_already_set                EQU        -25964
  424. validation_level_already_set    EQU        -25963
  425. viewPorts_already_set            EQU        -25962
  426. viewPort_already_in_viewGroup    EQU        -25961
  427. viewDevice_already_in_viewGroup    EQU        -25960
  428. geometry_unaffected                EQU        -25959
  429. mapping_unaffected                EQU        -25958
  430. tags_in_shape_ignored            EQU        -25957
  431. shape_already_in_primitive_form    EQU        -25956
  432. shape_already_in_simple_form    EQU        -25955
  433. shape_already_broken            EQU        -25954
  434. shape_already_joined            EQU        -25953
  435. cache_already_cleared            EQU        -25952
  436. shape_not_disposed                EQU        -25951
  437. style_not_disposed                EQU        -25950
  438. ink_not_disposed                EQU        -25949
  439. transform_not_disposed            EQU        -25948
  440. colorSet_not_disposed            EQU        -25947
  441. colorProfile_not_disposed        EQU        -25946
  442. font_not_disposed                EQU        -25945
  443. glyph_tangents_have_no_effect    EQU        -25944
  444. glyph_positions_determined_by_advance EQU -25943
  445. transform_viewPorts_already_set    EQU        -25942
  446. directShape_attribute_set_as_side_effect EQU -25941
  447. lockShape_called_as_side_effect    EQU        -25940
  448. lockTag_called_as_side_effect    EQU        -25939
  449. shapes_unlocked_as_side_effect    EQU        -25938
  450. shape_not_locked                EQU        -25937
  451. tag_not_locked                    EQU        -25936
  452. profile_not_locked                EQU        -25936
  453. lockProfile_called_as_side_effect EQU    -25939
  454. disposed_dead_caches            EQU        -25935
  455. disposed_live_caches            EQU        -25934
  456. low_on_memory                    EQU        -25933
  457. very_low_on_memory                EQU        -25932
  458. transform_references_disposed_viewPort EQU -25931
  459.  
  460. ; typedef long                             gxGraphicsError
  461.  
  462. ; typedef long                             gxGraphicsWarning
  463.  
  464. ; typedef long                             gxGraphicsNotice
  465.  
  466. ; typedef gxUserErrorProcPtr             gxUserErrorFunction
  467.  
  468. ; typedef gxUserWarningProcPtr             gxUserWarningFunction
  469.  
  470. ; typedef gxUserNoticeProcPtr             gxUserNoticeFunction
  471.  
  472.  
  473.  
  474. common_colors_not_initialized    EQU        1048576
  475. no_open_picture                    EQU        1048577
  476. picture_already_open            EQU        1048578
  477. no_open_poly                    EQU        1048579
  478. poly_already_open                EQU        1048580
  479. no_open_region                    EQU        1048581
  480. region_already_open                EQU        1048582
  481. no_active_picture                EQU        1048583
  482.  
  483. no_picture_drawn                EQU        4194304
  484. polygons_have_different_size_contours EQU 4194305
  485. graphic_type_cannot_be_specifed_by_four_values EQU 4194306
  486. graphic_type_cannot_be_specifed_by_six_values EQU 4194307
  487. point_expected                    EQU        4194308
  488. line_or_rectangle_expected        EQU        4194309
  489. curve_expected                    EQU        4194310
  490. graphic_type_does_not_contain_control_bits EQU 4194311
  491. request_exceeds_available_data    EQU        4194312
  492. extra_data_unread                EQU        4194313
  493. no_variable_length_user_data_saved EQU    4194314
  494.  
  495. zero_length_string_passed        EQU        7340032
  496.  
  497.                                                             ; These levels tell how to validate routines.  Choose one. 
  498. gxNoValidation                    EQU        $00                    ; no validation 
  499. gxPublicValidation                EQU        $01                    ; check parameters to public routines 
  500. gxInternalValidation            EQU        $02                    ; check parameters to internal routines 
  501.                                                             ; These levels tell how to validate types.  Choose one. 
  502. gxTypeValidation                EQU        $00                    ; check types of objects 
  503. gxStructureValidation            EQU        $10                    ; check fields of private structures 
  504. gxAllObjectValidation            EQU        $20                    ; check every object over every call 
  505.                                                             ; These levels tell how to validate memory manager blocks.  Choose any combination. 
  506. gxNoMemoryManagerValidation        EQU        $0000
  507. gxApBlockValidation                EQU        $0100                ; check the relevant block structures after each memory mgr. call 
  508. gxFontBlockValidation            EQU        $0200                ; check the system gxHeap as well 
  509. gxApHeapValidation                EQU        $0400                ; check the memory manager’s gxHeap after every mem. call 
  510. gxFontHeapValidation            EQU        $0800                ; check the system gxHeap as well 
  511. gxCheckApHeapValidation            EQU        $1000                ; check the memory manager’s gxHeap if checking routine parameters 
  512. gxCheckFontHeapValidation        EQU        $2000                ; check the system gxHeap as well 
  513. ; typedef long                             gxValidationLevel
  514.  
  515.  
  516. no_draw_error                    EQU        0                    ; gxShape type errors 
  517. shape_emptyType                    EQU        1
  518. shape_inverse_fullType            EQU        2
  519. rectangle_zero_width            EQU        3
  520. rectangle_zero_height            EQU        4
  521. polygon_empty                    EQU        5
  522. path_empty                        EQU        6
  523. bitmap_zero_width                EQU        7
  524. bitmap_zero_height                EQU        8
  525. text_empty                        EQU        9
  526. glyph_empty                        EQU        10
  527. layout_empty                    EQU        11
  528. picture_empty                    EQU        12                    ; general gxShape errors 
  529. shape_no_fill                    EQU        13
  530. shape_no_enclosed_area            EQU        14
  531. shape_no_enclosed_pixels        EQU        15
  532. shape_very_small                EQU        16
  533. shape_very_large                EQU        17
  534. shape_contours_cancel            EQU        18                    ; gxStyle errors 
  535. pen_too_small                    EQU        19
  536. text_size_too_small                EQU        20
  537. dash_empty                        EQU        21
  538. start_cap_empty                    EQU        22
  539. pattern_empty                    EQU        23
  540. textFace_empty                    EQU        24
  541. shape_primitive_empty            EQU        25
  542. shape_primitive_very_small        EQU        26                    ; gxInk errors 
  543. transfer_equals_noMode            EQU        27
  544. transfer_matrix_ignores_source    EQU        28
  545. transfer_matrix_ignores_device    EQU        29
  546. transfer_source_reject            EQU        30
  547. transfer_mode_ineffective        EQU        31
  548. colorSet_no_entries                EQU        32
  549. bitmap_colorSet_one_entry        EQU        33                    ; gxTransform errors 
  550. transform_scale_too_small        EQU        34
  551. transform_map_too_large            EQU        35
  552. transform_move_too_large        EQU        36
  553. transform_scale_too_large        EQU        37
  554. transform_rotate_too_large        EQU        38
  555. transform_perspective_too_large    EQU        39
  556. transform_skew_too_large        EQU        40
  557. transform_clip_no_intersection    EQU        41
  558. transform_clip_empty            EQU        42
  559. transform_no_viewPorts            EQU        43                    ; gxViewPort errors 
  560. viewPort_disposed                EQU        44
  561. viewPort_clip_empty                EQU        45
  562. viewPort_clip_no_intersection    EQU        46
  563. viewPort_scale_too_small        EQU        47
  564. viewPort_map_too_large            EQU        48
  565. viewPort_move_too_large            EQU        49
  566. viewPort_scale_too_large        EQU        50
  567. viewPort_rotate_too_large        EQU        51
  568. viewPort_perspective_too_large    EQU        52
  569. viewPort_skew_too_large            EQU        53
  570. viewPort_viewGroup_offscreen    EQU        54                    ; gxViewDevice errors 
  571. viewDevice_clip_no_intersection    EQU        55
  572. viewDevice_scale_too_small        EQU        56
  573. viewDevice_map_too_large        EQU        57
  574. viewDevice_move_too_large        EQU        58
  575. viewDevice_scale_too_large        EQU        59
  576. viewDevice_rotate_too_large        EQU        60
  577. viewDevice_perspective_too_large EQU    61
  578. viewDevice_skew_too_large        EQU        62
  579. ; typedef long                             gxDrawError
  580.  
  581. ;
  582. ; extern gxDrawError GXGetShapeDrawError(gxShape source)
  583. ;
  584.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  585.         Macro
  586.         _GXGetShapeDrawError
  587.             move.w              #$01EE,D0
  588.             dc.w                $A832
  589.         EndM
  590.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  591.         IMPORT_CFM_FUNCTION GXGetShapeDrawError
  592.     ENDIF
  593.  
  594. ;
  595. ; extern void GXValidateAll(void )
  596. ;
  597.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  598.         Macro
  599.         _GXValidateAll
  600.             move.w              #$01EF,D0
  601.             dc.w                $A832
  602.         EndM
  603.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  604.         IMPORT_CFM_FUNCTION GXValidateAll
  605.     ENDIF
  606.  
  607. ;
  608. ; extern void GXValidateColorSet(gxColorSet target)
  609. ;
  610.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  611.         Macro
  612.         _GXValidateColorSet
  613.             move.w              #$01F0,D0
  614.             dc.w                $A832
  615.         EndM
  616.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  617.         IMPORT_CFM_FUNCTION GXValidateColorSet
  618.     ENDIF
  619.  
  620. ;
  621. ; extern void GXValidateColorProfile(gxColorProfile target)
  622. ;
  623.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  624.         Macro
  625.         _GXValidateColorProfile
  626.             move.w              #$01F1,D0
  627.             dc.w                $A832
  628.         EndM
  629.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  630.         IMPORT_CFM_FUNCTION GXValidateColorProfile
  631.     ENDIF
  632.  
  633. ;
  634. ; extern void GXValidateGraphicsClient(gxGraphicsClient target)
  635. ;
  636.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  637.         Macro
  638.         _GXValidateGraphicsClient
  639.             move.w              #$01F2,D0
  640.             dc.w                $A832
  641.         EndM
  642.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  643.         IMPORT_CFM_FUNCTION GXValidateGraphicsClient
  644.     ENDIF
  645.  
  646. ;
  647. ; extern void GXValidateInk(gxInk target)
  648. ;
  649.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  650.         Macro
  651.         _GXValidateInk
  652.             move.w              #$01F3,D0
  653.             dc.w                $A832
  654.         EndM
  655.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  656.         IMPORT_CFM_FUNCTION GXValidateInk
  657.     ENDIF
  658.  
  659. ;
  660. ; extern void GXValidateShape(gxShape target)
  661. ;
  662.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  663.         Macro
  664.         _GXValidateShape
  665.             move.w              #$01F4,D0
  666.             dc.w                $A832
  667.         EndM
  668.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  669.         IMPORT_CFM_FUNCTION GXValidateShape
  670.     ENDIF
  671.  
  672. ;
  673. ; extern void GXValidateStyle(gxStyle target)
  674. ;
  675.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  676.         Macro
  677.         _GXValidateStyle
  678.             move.w              #$01F5,D0
  679.             dc.w                $A832
  680.         EndM
  681.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  682.         IMPORT_CFM_FUNCTION GXValidateStyle
  683.     ENDIF
  684.  
  685. ;
  686. ; extern void GXValidateTag(gxTag target)
  687. ;
  688.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  689.         Macro
  690.         _GXValidateTag
  691.             move.w              #$01F6,D0
  692.             dc.w                $A832
  693.         EndM
  694.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  695.         IMPORT_CFM_FUNCTION GXValidateTag
  696.     ENDIF
  697.  
  698. ;
  699. ; extern void GXValidateTransform(gxTransform target)
  700. ;
  701.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  702.         Macro
  703.         _GXValidateTransform
  704.             move.w              #$01F7,D0
  705.             dc.w                $A832
  706.         EndM
  707.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  708.         IMPORT_CFM_FUNCTION GXValidateTransform
  709.     ENDIF
  710.  
  711. ;
  712. ; extern void GXValidateViewDevice(gxViewDevice target)
  713. ;
  714.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  715.         Macro
  716.         _GXValidateViewDevice
  717.             move.w              #$01F8,D0
  718.             dc.w                $A832
  719.         EndM
  720.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  721.         IMPORT_CFM_FUNCTION GXValidateViewDevice
  722.     ENDIF
  723.  
  724. ;
  725. ; extern void GXValidateViewPort(gxViewPort target)
  726. ;
  727.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  728.         Macro
  729.         _GXValidateViewPort
  730.             move.w              #$01F9,D0
  731.             dc.w                $A832
  732.         EndM
  733.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  734.         IMPORT_CFM_FUNCTION GXValidateViewPort
  735.     ENDIF
  736.  
  737. ;
  738. ; extern void GXValidateViewGroup(gxViewGroup target)
  739. ;
  740.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  741.         Macro
  742.         _GXValidateViewGroup
  743.             move.w              #$01FA,D0
  744.             dc.w                $A832
  745.         EndM
  746.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  747.         IMPORT_CFM_FUNCTION GXValidateViewGroup
  748.     ENDIF
  749.  
  750. ;
  751. ; extern gxValidationLevel GXGetValidation(void )
  752. ;
  753.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  754.         Macro
  755.         _GXGetValidation
  756.             move.w              #$01FB,D0
  757.             dc.w                $A832
  758.         EndM
  759.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  760.         IMPORT_CFM_FUNCTION GXGetValidation
  761.     ENDIF
  762.  
  763. ;
  764. ; extern void GXSetValidation(gxValidationLevel level)
  765. ;
  766.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  767.         Macro
  768.         _GXSetValidation
  769.             move.w              #$01FC,D0
  770.             dc.w                $A832
  771.         EndM
  772.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  773.         IMPORT_CFM_FUNCTION GXSetValidation
  774.     ENDIF
  775.  
  776. ;
  777. ; extern long GXGetValidationError(char *procedureName, void **argument, long *argumentNumber)
  778. ;
  779.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  780.         Macro
  781.         _GXGetValidationError
  782.             move.w              #$01FD,D0
  783.             dc.w                $A832
  784.         EndM
  785.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  786.         IMPORT_CFM_FUNCTION GXGetValidationError
  787.     ENDIF
  788.  
  789.  
  790.     ENDIF ; __GXERRORS__ 
  791.  
  792.